package com.loong.coupon.model;

import com.loong.common.mybatis.entity.BaseEntity;
import javax.persistence.*;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@Builder
@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "coupon_apply_rule")
public class CouponApplyRule extends BaseEntity {
    /**
     * 优惠券id
     */
    @Column(name = "coupon_id")
    private Long couponId;

    /**
     * 规则名称
     */
    @Column(name = "rule_name")
    private String ruleName;

    /**
     * 规则值(0则表示所有,多个值之间用英文逗号隔开)
     */
    @Column(name = "rule_value")
    private String ruleValue;

    /**
     * 规则类型(1适用用户,2适用类型,3适用平台)
     */
    @Column(name = "rule_type")
    private Integer ruleType;
}